package movie.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import movie.entity.Film;
import movie.mapper.FilmMapper;
import movie.service.FilmFindAllService;

@Service
public class FilmFindAllServiceImpl implements FilmFindAllService{
	@Autowired
	private FilmMapper filmMapper;
	
	@Override
	public List<Film> findAll()
	{
		return filmMapper.findAll();
	}
	@Override
	public List<Film> findReYing()
	{
		return filmMapper.findReYing();
	}
	@Override
	public List<Film> findWillShow()
	{
		return filmMapper.findWillShow();
	}
	@Override
	public List<Film> findShowed()
	{
		return filmMapper.findShowed();
	}
	@Override
	public int  update(Film film)
	{
		return filmMapper.update(film);
	}
	
	@Override
	public Film  findMovieId(int movieId)
	{
		return filmMapper.findByMovieId(movieId);
	}
	
	@Override
	public List<Film>  findByFilmName(String fileName)
	{
		return filmMapper.findByFilmName(fileName);
	}
	

}
